home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 189_01 / xdir.h < prev   
Encoding:
Text File  |  1985-08-19  |  768 b   |  39 lines

  1. /* fdir.h       extended file info */
  2.  
  3. #define NORMAL 0
  4. #define RDONLY 0x01
  5. #define HIDDEN 0x02
  6. #define SYSTEM 0x04
  7. #define VOLUME 0x08
  8. #define SUBDIR 0x10
  9. #define ARCHIV 0x20
  10. #define FILES  0x27
  11. #define ALL    0x3f
  12. #define MOST   0x37 /* all except volume */
  13.  
  14. struct DTA {
  15.     char reserved[21];
  16.     char attribute;
  17.     unsigned sec: 5;
  18.     unsigned min: 6;
  19.     unsigned hour: 5;
  20.     unsigned day: 5;
  21.     unsigned month: 4;
  22.     unsigned year: 7;
  23.     long size;
  24.     char name[13];
  25. };
  26.  
  27. struct file_info {
  28.     char *name;
  29.     char attr;
  30.     long size;
  31.     char mon;
  32.     char day;
  33.     char year;
  34.     char hour;
  35.     char min;
  36. };
  37.  
  38. extern xdir();
  39.    ö} "┬ CASE    C   Ætç 0ôFTRIM   C   ┌É} V